<h3>Thêm mới video</h3>
<script type="text/javascript">
  	function check(){
		if(document.sac.name.value == ""){
			alert("Vui lòng nhập tiêu đề video!");
			document.sac.name.focus();
			return false;
		}if(document.sac.video.value == ""){
			alert("Vui lòng nhập link video!");
			document.sac.video.focus();
			return false;
		}else{
			return true;
		}
	}
</script>
<div class="add_user">
<?php
	if(isset($error)){
		echo "<p style='color:red'>$error</p>";
	}
?>
<form action="<?php echo base_url()?>admin/media/add" method="post" name="sac" onsubmit="return check()" enctype="multipart/form-data">
	<table width="534" align="center">
  <tr>
    <td width="134" height="13">Tên video</td>
    <td colspan="3" align="left"><p>
      <input type="text" name="name" size="30" id="name" />
    </p></td>
    </tr>
  <tr>
    <td width="134" height="5">Link video</td>
    <td colspan="3" align="left"><div id="images">
      <input type="text" name="video" size="30" id="video" />
    </div></td>
  </tr>
  <tr>
    <td height="26" align="right">&nbsp;</td>
    <td width="121" align="center"><input type="submit" name="ok" value="Add video" class="magin"/></td>
    <td colspan="2" align="left">&nbsp;</td>
  </tr>
    </table>
</form>
</div>
